print dialog: Use an element name for rendering the paper
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 Nov 2015 05:57:03 +0000 (00:57 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 Nov 2015 05:57:03 +0000 (00:57 -0500)
Use a transient node with name paper instead of a random
collection of style classes for rendering the papers.

gtk/gtkprintunixdialog.c

index 3f7d6eb908eead9355d7d4454e60a1bca70ce8d3..71b2101c92fb2cdc7e44d7b8420d53686f9fb3fe 100644 (file)
@@ -56,6 +56,7 @@
 #include "gtkprivate.h"
 #include "gtktypebuiltins.h"
 #include "gtkdialogprivate.h"
+#include "gtkstylecontextprivate.h"
 
 
 /**
@@ -2223,10 +2224,7 @@ paint_page (GtkWidget *widget,
 
   context = gtk_widget_get_style_context (widget);
 
-  gtk_style_context_save (context);
-  gtk_style_context_add_class (context, GTK_STYLE_CLASS_FRAME);
-  gtk_style_context_add_class (context, GTK_STYLE_CLASS_PAPER);
-  gtk_style_context_add_class (context, GTK_STYLE_CLASS_VIEW);
+  gtk_style_context_save_named (context, "paper");
 
   gtk_render_background (context, cr, x, y, width, height);
   gtk_render_frame (context, cr, x, y, width, height);